<?php
//连接数据库
$conn = mysqli_connect('localhost','root','root','vote');

//设置字符集
mysqli_query($conn,'set name utf8');
